//
// CLodCharacterShapeBuild.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.IStream;

public class CLodCharacterShapeBuild {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CLodCharacterShapeBuild(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CLodCharacterShapeBuild obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CLodCharacterShapeBuild(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CLodCharacterShapeBuild() {
    this(nel3dJNI.new_CLodCharacterShapeBuild(), true);
  }

  public void setVertices(Vector_CVector value) {
    nel3dJNI.CLodCharacterShapeBuild_Vertices_set(swigCPtr, this, Vector_CVector.getCPtr(value), value);
  }

  public Vector_CVector getVertices() {
    long cPtr = nel3dJNI.CLodCharacterShapeBuild_Vertices_get(swigCPtr, this);
    return (cPtr == 0) ? null : new Vector_CVector(cPtr, false);
  }

  public void setSkinWeights(SWIGTYPE_p_std__vectorT_NL3D__CSkinWeight_t value) {
    nel3dJNI.CLodCharacterShapeBuild_SkinWeights_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_NL3D__CSkinWeight_t.getCPtr(value));
  }

  public SWIGTYPE_p_std__vectorT_NL3D__CSkinWeight_t getSkinWeights() {
    long cPtr = nel3dJNI.CLodCharacterShapeBuild_SkinWeights_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_NL3D__CSkinWeight_t(cPtr, false);
  }

  public void setUVs(SWIGTYPE_p_std__vectorT_NLMISC__CUV_t value) {
    nel3dJNI.CLodCharacterShapeBuild_UVs_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_NLMISC__CUV_t.getCPtr(value));
  }

  public SWIGTYPE_p_std__vectorT_NLMISC__CUV_t getUVs() {
    long cPtr = nel3dJNI.CLodCharacterShapeBuild_UVs_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_NLMISC__CUV_t(cPtr, false);
  }

  public void setNormals(Vector_CVector value) {
    nel3dJNI.CLodCharacterShapeBuild_Normals_set(swigCPtr, this, Vector_CVector.getCPtr(value), value);
  }

  public Vector_CVector getNormals() {
    long cPtr = nel3dJNI.CLodCharacterShapeBuild_Normals_get(swigCPtr, this);
    return (cPtr == 0) ? null : new Vector_CVector(cPtr, false);
  }

  public void setBonesNames(Vector_String value) {
    nel3dJNI.CLodCharacterShapeBuild_BonesNames_set(swigCPtr, this, Vector_String.getCPtr(value), value);
  }

  public Vector_String getBonesNames() {
    long cPtr = nel3dJNI.CLodCharacterShapeBuild_BonesNames_get(swigCPtr, this);
    return (cPtr == 0) ? null : new Vector_String(cPtr, false);
  }

  public void setTriangleIndices(Vector_uint16 value) {
    nel3dJNI.CLodCharacterShapeBuild_TriangleIndices_set(swigCPtr, this, Vector_uint16.getCPtr(value), value);
  }

  public Vector_uint16 getTriangleIndices() {
    long cPtr = nel3dJNI.CLodCharacterShapeBuild_TriangleIndices_get(swigCPtr, this);
    return (cPtr == 0) ? null : new Vector_uint16(cPtr, false);
  }

  public void compile(SWIGTYPE_p_std__vectorT_bool_t triangleSelection, long textureOverSample) {
    nel3dJNI.CLodCharacterShapeBuild_compile__SWIG_0(swigCPtr, this, SWIGTYPE_p_std__vectorT_bool_t.getCPtr(triangleSelection), textureOverSample);
  }

  public void compile(SWIGTYPE_p_std__vectorT_bool_t triangleSelection) {
    nel3dJNI.CLodCharacterShapeBuild_compile__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__vectorT_bool_t.getCPtr(triangleSelection));
  }

  public void serial(IStream f) {
    nel3dJNI.CLodCharacterShapeBuild_serial(swigCPtr, this, IStream.getCPtr(f), f);
  }

  public SWIGTYPE_p_NL3D__CLodCharacterShapeBuild__CPixelInfo getTextureInfoPtr() {
    long cPtr = nel3dJNI.CLodCharacterShapeBuild_getTextureInfoPtr(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_NL3D__CLodCharacterShapeBuild__CPixelInfo(cPtr, false);
  }

  public long getTextureInfoWidth() {
    return nel3dJNI.CLodCharacterShapeBuild_getTextureInfoWidth(swigCPtr, this);
  }

  public long getTextureInfoHeight() {
    return nel3dJNI.CLodCharacterShapeBuild_getTextureInfoHeight(swigCPtr, this);
  }

}
